package com.crs.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ResourcePubDTO {

    @NotEmpty(message = "资源名称不能为空")
    @Size(max = 50,message = "名称最长为50个字")
    private String name;

    @NotEmpty(message = "描述信息不能为空")
    @Size(max = 100,message = "描述不能多于100字")
    private String description;

    @NotEmpty(message = "物品的位置不能为空")
    private String location;

    @NotEmpty(message = "分类不能不选")
    private Integer categoryId;

}
